#include <Square.h>

Square::Square(unsigned int sideLength): sideLength_m(sideLength)
{
}

unsigned int Square::getPerimeter() const
{
    return 4 * sideLength_m;
}

unsigned int Square::getArea() const
{
    return sideLength_m * sideLength_m;
}

unsigned int Square::setSideLength(unsigned int sideLength)
{
    sideLength_m = sideLength;
    return sideLength_m;
}
